package com.example.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shanchong
 * @date 2019-07-11
 **/
@RestController
public class RetrofitTestController {

    @RequestMapping(value = "/test/1")
    public String test1(@RequestParam(value = "param") String param){
        System.out.println("param:"+param);

        return "<xml><id>1</id><name>单冲</name><node_id>123</node_id></xml>";
    }

}
